home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / alsa / cards / NFORCE.conf < prev    next >
Text File  |  2009-10-11  |  5KB  |  296 lines

  1. #
  2. # Configuration for the nVIDIA nForce/2/3
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. NFORCE.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type softvol
  13.     slave.pcm {
  14.         type hw
  15.         card $CARD
  16.     }
  17.     control {
  18.         name "PCM Playback Volume"
  19.         card $CARD
  20.     }
  21. }    
  22.  
  23. # default with dmix+softvol & dsnoop
  24. NFORCE.pcm.default {
  25.     @args [ CARD ]
  26.     @args.CARD {
  27.         type string
  28.     }
  29.     type asym
  30.     playback.pcm {
  31.         type plug
  32.         slave.pcm {
  33.             type softvol
  34.             slave.pcm {
  35.                 @func concat
  36.                 strings [ "dmix:" $CARD ]
  37.             }
  38.             control {
  39.                 name "PCM Playback Volume"
  40.                 card $CARD
  41.             }
  42.         }
  43.     }
  44.     capture.pcm {
  45.         type plug
  46.         slave.pcm {
  47.             @func concat
  48.             strings [ "dsnoop:" $CARD ]
  49.         }
  50.     }
  51. }
  52.  
  53. <confdir:pcm/surround40.conf>
  54.  
  55. NFORCE.pcm.surround40.0 {
  56.     @args [ CARD ]
  57.     @args.CARD {
  58.         type string
  59.     }
  60.     type softvol
  61.     slave.pcm {
  62.         type hooks
  63.         slave.pcm {
  64.             type hw
  65.             card $CARD
  66.             channels 4
  67.         }
  68.         hooks.0 {
  69.             type ctl_elems
  70.             hook_args [
  71.             {
  72.                 name "Channel Mode"
  73.                 preserve true
  74.                 value "4ch"
  75.                 lock true
  76.                 optional true
  77.             }
  78.             # for old drivers
  79.             {
  80.                 name "Line-In As Surround"
  81.                 preserve true
  82.                 value true
  83.                 optional true
  84.             }
  85.             {
  86.                 name "Surround Down Mix"
  87.                 preserve true
  88.                 value off
  89.                 lock true
  90.                 optional true
  91.             }
  92.             ]
  93.         }
  94.     }
  95.     control {
  96.         name "PCM Playback Volume"
  97.         card $CARD
  98.     }
  99. }
  100.  
  101. <confdir:pcm/surround41.conf>
  102. <confdir:pcm/surround50.conf>
  103. <confdir:pcm/surround51.conf>
  104.  
  105. NFORCE.pcm.surround51.0 {
  106.     @args [ CARD ]
  107.     @args.CARD {
  108.         type string
  109.     }
  110.     type softvol
  111.     slave.pcm {
  112.         type route
  113.         ttable.0.0 1
  114.         ttable.1.1 1
  115.         ttable.2.4 1
  116.         ttable.3.5 1
  117.         ttable.4.2 1
  118.         ttable.5.3 1
  119.         slave.pcm {
  120.             type hooks
  121.             slave.pcm {
  122.                 type hw
  123.                 card $CARD
  124.                 channels 6
  125.             }
  126.             hooks.0 {
  127.                 type ctl_elems
  128.                 hook_args [
  129.                 {
  130.                     name "Channel Mode"
  131.                     preserve true
  132.                     value "6ch"
  133.                     lock true
  134.                     optional true
  135.                 }
  136.                 # for old drivers
  137.                 {
  138.                     name "Line-In As Surround"
  139.                     preserve true
  140.                     value true
  141.                     optional true
  142.                 }
  143.                 {
  144.                     name "Mic As Center/LFE"
  145.                     preserve true
  146.                     value true
  147.                     optional true
  148.                 }
  149.                 {
  150.                     name "Surround Down Mix"
  151.                     preserve true
  152.                     value off
  153.                     lock true
  154.                     optional true
  155.                 }
  156.                 {
  157.                     name "Center/LFE Down Mix"
  158.                     preserve true
  159.                     value off
  160.                     lock true
  161.                     optional true
  162.                 }
  163.                 ]
  164.             }
  165.         }
  166.         slave.channels 6
  167.     }
  168.     control {
  169.         name "PCM Playback Volume"
  170.         card $CARD
  171.     }
  172. }
  173.  
  174. <confdir:pcm/surround71.conf>
  175.  
  176. NFORCE.pcm.surround71.0 {
  177.     @args [ CARD ]
  178.     @args.CARD {
  179.         type string
  180.     }
  181.     type softvol
  182.     slave.pcm {
  183.         type route
  184.         ttable.0.0 1
  185.         ttable.1.1 1
  186.         ttable.2.4 1
  187.         ttable.3.5 1
  188.         ttable.4.2 1
  189.         ttable.5.3 1
  190.         ttable.6.6 1
  191.         ttable.7.7 1
  192.         slave.pcm {
  193.             type hooks
  194.             slave.pcm {
  195.                 type hw
  196.                 card $CARD
  197.                 device 0
  198.             }
  199.             hooks.0 {
  200.                 type ctl_elems
  201.                 hook_args [
  202.                 {
  203.                     name "Channel Mode"
  204.                     preserve true
  205.                     value "8ch"
  206.                     lock true
  207.                     optional true
  208.                 }
  209.                 # for old drivers
  210.                 {
  211.                     name "Line-In As Surround"
  212.                     preserve true
  213.                     value true
  214.                     optional true
  215.                 }
  216.                 {
  217.                     name "Mic As Center/LFE"
  218.                     preserve true
  219.                     value true
  220.                     optional true
  221.                 }
  222.                 {
  223.                     name "Surround Down Mix"
  224.                     preserve true
  225.                     value off
  226.                     lock true
  227.                     optional true
  228.                 }
  229.                 {
  230.                     name "Center/LFE Down Mix"
  231.                     preserve true
  232.                     value off
  233.                     lock true
  234.                     optional true
  235.                 }
  236.                 ]
  237.             }
  238.         }
  239.         slave.channels 8
  240.     }
  241.     control {
  242.         name "PCM Playback Volume"
  243.         card $CARD
  244.     }
  245. }
  246.  
  247. <confdir:pcm/iec958.conf>
  248.  
  249. NFORCE.pcm.iec958.0 {
  250.     @args [ CARD AES0 AES1 AES2 AES3 ]
  251.     @args.CARD {
  252.         type string
  253.     }
  254.     @args.AES0 {
  255.         type integer
  256.     }
  257.     @args.AES1 {
  258.         type integer
  259.     }
  260.     @args.AES2 {
  261.         type integer
  262.     }
  263.     @args.AES3 {
  264.         type integer
  265.     }
  266.     type hooks
  267.     slave.pcm {
  268.         type hw
  269.         card $CARD
  270.         device 2
  271.     }
  272.     hooks.0 {
  273.         type ctl_elems
  274.         hook_args [
  275.             {
  276.                 name "IEC958 Playback AC97-SPSA"
  277.                 lock true
  278.                 preserve true
  279.                 value 0
  280.             }
  281.             {
  282.                 name "IEC958 Playback Default"
  283.                 lock true
  284.                 preserve true
  285.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  286.             }
  287.             {
  288.                 name "IEC958 Playback Switch"
  289.                 lock true
  290.                 preserve true
  291.                 value true
  292.             }
  293.         ]
  294.     }
  295. }
  296.